<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <thead>
        <th>id</th>
        <th>cname</th>
    </thead>
    <tbody>
    {% for item in  data  %}
        <tr>
            <td>{{ item.id }}</td>
            <td>{{ item.name }}</td>
        </tr>
    {% endfor %}
    </tbody>
</table>
</body>
</html>